package ltg.ibutton.aquaroom.gui.tablet;

import javax.swing.Icon;
import javax.swing.JButton;

public class JGridButton extends JButton {
	private static final long serialVersionUID = 1L;
	private int x,y;
	private int status = 0;
	
	public JGridButton() {
		super();
	}
		
	public JGridButton(String s) {
		super(s);
	}
	
	public JGridButton(Icon icon) {
		super(icon);
	}
	
	public JGridButton(String text, Icon icon) {
		super(text, icon);
	}
	
	public void setCoords(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public int[]  getCoords() {
		int[] coords = {this.x, this.y};
		return coords;
	}
	
	public int getCoordX() {
		return this.x;
	}
	
	public int getCoordY() {
		return this.y;
	}
	
	public void setStatus(int n) {
		this.status = n;
	}
	
	public int getStatus() {
		return status;
	}
	
}
